<template>
  <div class="login">
    <section class="login-box">
      <h3>登录</h3>
      <el-form ref="loginForm" hide-required-asterisk :model="form" :rules="loginRules" label-width="60px">
        <el-form-item label="帐号" prop="account">
          <el-input v-model="form.account"></el-input>
        </el-form-item>
        <el-form-item label="密码" prop="password">
          <el-input type="password" v-model="form.password"></el-input>
        </el-form-item>
        <el-form-item class="element-button-no-margin">
          <el-button type="primary" @click="onSubmit">登录</el-button>
        </el-form-item>
      </el-form>
    </section>
  </div>
</template>

<script lang="ts" src="./index.ts"></script>

<style lang="less">
  @import "index";
</style>
